public class Solution2240 {
    public long waysToBuyPensPencils(int total, int cost1, int cost2) {
        long ans=0;
        while (total>=0){
            ans+=total/cost2+1;
            total-=cost1;
        }
        return ans;
    }

    public static void main(String[] args) {
        System.out.println(new Solution2240().waysToBuyPensPencils(20,10,5));
    }
}
